package com.example.demo.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.model.req.DogAddRequest;
import com.example.demo.service.DogService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;

@RestController
@RequestMapping("/cat")
@Tag(name = "cat 猫")
public class CatController {

    @Resource
    private DogService dogService;

    @Operation(summary = "保存")
    @PostMapping("/save")
    @ApiOperationSupport(author = "梅孝亮", order = 300)
    public String save(@RequestBody DogAddRequest dogAddRequest) {
        System.out.println("cat save: " + dogAddRequest);
        return "";
    }

}
